<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/6/15
 * Time: 16:37
 */
define('ROOT_PATH',__DIR__);
require ROOT_PATH.'/base/function.php';
$short_arr = [5,13,21,6,9,12,13,55,22,17];
$arr = makeBaseArray();
//引入算法类文件
$sort_files = scandir(ROOT_PATH.'/library');
foreach ($sort_files as $val){
    if(pathinfo($val,PATHINFO_EXTENSION) == 'php'){
        require_once ROOT_PATH.'/library/'.$val;
    }
}

//实例化排序类
$Sort = new Sort($arr);

//冒泡排序
$Sort->run('maopaoSort');

//选择排序
$Sort->run('selectSort');

//插入排序
$Sort->run('insertSort');












